package com.collect.collect.api.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.collect.collect.api.entity.DataMonitor;
import com.collect.collect.api.entity.vo.DataMonitorVO;

import java.util.List;
import java.util.Map;
import java.util.Set;

public interface DataMonitorMapper extends BaseMapper<DataMonitor> {

    /**
     * 查询监控数据
     * @param dataMonitorVO
     * @return
     */
    List<Map<String,Object>> getData(DataMonitorVO dataMonitorVO);

    /**
     * 查询表时间类型字段
     * @param tableName
     * @return
     */
    Set<String> selectDateColumn(String tableName);
}
